<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('attraction_info_tag', function (Blueprint $table) {
            $table->integer('info_id')->nullable(false)->comment('信息id');
            $table->string('tag', 64)->nullable(false)->comment('标签');
            $table->integer('sort')->nullable(false)->default(100)->comment('排序');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('attraction_info_tag');
    }
};
